import lib.net.wifi as wifi
from lib.api import iot
from utils import device
from lib.config.index import sensor_config

device_info = device.get_device_info()
sensors = sensor_config.get_config()

data = device_info
data["sensors"] = sensors
print(data)

wifi.do_connect_wifi()
# 上传到默认topic
iot.upload_data(data, "Tiot_0z4qp1tukp")
print("upload end")
